package com.roger.myHome.exception;


//https://www.cnblogs.com/fuzongle/p/14035478.html
/**
 * 异常统一
 */
public class BaseException extends RuntimeException  {

    private static final long serialVersionUID = 1L;

    private final int code;
    private final String value;

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
        this.value = message;
    }
    public int getCode() {
        return this.code;
    }
}
